package main

import "fmt"

func main() {
	switch {
	case true:
		fmt.Println("case后的数值是true")
	case false:
		fmt.Println("case后的数值是false")
	}
	score := 48
	switch {
	case score >= 90 && score <= 100:
		fmt.Println("优秀")
	case score >= 60 && score < 70:
		fmt.Println("及格")
	case score >= 80 && score < 90:
		fmt.Println("良好")
	case score >= 70 && score < 80:
		fmt.Println("中等")
	case score >= 0 && score < 60:
		fmt.Println("不及格")
	}
	a := "A"
	switch a {
	case "A", "B", "C", "D":
		fmt.Println("A-D")
	case "E", "F", "G":
		fmt.Println("E-G")
	}
	score=ls
	60
	fmt.Println(score/10)
	switch score/10 {
	case 9,10:
		fmt.Println("优秀")
	case 8:
		fmt.Println("良好")
	case 7:
		fmt.Println("中等")
	case 6:
		fmt.Println("及格")
	case 5,4,3,2,1,0:
		fmt.Println("不及格")
	}
}